
// 研判标准
export const yanpan_table = {
  isSelectFlag: false, // 是否展示选择器
  compRef: "gjxm",
  isSequenceFlag: false, // 是否展示序号
  isShowPage: false, // 是否展示分页
  loading: false,
  tableData: [],
  columns: [
    {
      prop: "eventName",
      label: "类别",
      align: "center",
      "width": "130px"
      // "min-width": "230px"
    },
    {
      prop: "responseLvName",
      label: "级别",
      align: "center",
      "width": "120px"
      // "min-width": "230px"
    },
    {
      prop: "startCondition",
      label: "启动条件",
      align: "left",
      "min-width": "230px"
    }
  ],
  tableAttr: {
    "max-height": "288px",
    // height: "288px",
    stripe: false,
    border: true,
    fit: true,
    "show-header": true,
    "highlight-current-row": true,
    "cell-style": {
      "font-size": "16px"
    },
    "header-cell-style": {
      "text-align": "center",
      "background-color": "#B1C8F9",
      border: "1px solid #ccc",
      "font-size": "16px"
    }
  }
};

export const zqxx_columns = [
  {
    prop: "unitName",
    label: "所属单位",
    align: "center",
    "min-width": "90px"
  },
  {
    prop: "",
    label: "输电线路",
    align: "center",
    "min-width": "80px",
    children: [
      {
        label: "500kV及以上",
        align: "center",
        "min-width": "80px",
        children: [
          {
            prop: "sdxl500KvTrip",
            label: "累计跳闸",
            align: "center",
            "min-width": "90px"
          },
          {
            prop: "sdxl500KvRecover",
            label: "累计恢复",
            align: "center",
            "min-width": "90px"
          }
        ]
      },
      {
        label: "220kV",
        align: "center",
        "min-width": "80px",
        children: [
          {
            prop: "sdxl220KvTrip",
            label: "累计跳闸",
            align: "center",
            "min-width": "90px"
          },
          {
            prop: "sdxl220KvRecover",
            label: "累计恢复",
            align: "center",
            "min-width": "90px"
          }
        ]
      },
      {
        label: "110kV",
        align: "center",
        "min-width": "80px",
        children: [
          {
            prop: "sdxl110KvTrip",
            label: "累计跳闸",
            align: "center",
            "min-width": "90px"
          },
          {
            prop: "sdxl110KvRecover",
            label: "累计恢复",
            align: "center",
            "min-width": "90px"
          }
        ]
      },
      {
        label: "35kV",
        align: "center",
        "min-width": "120px",
        children: [
          {
            prop: "sdxl35KvTrip",
            label: "累计跳闸",
            align: "center",
            "min-width": "90px"
          },
          {
            prop: "sdxl35KvRecover",
            label: "累计恢复",
            align: "center",
            "min-width": "90px"
          }
        ]
      }
    ]
  },
  {
    label: "变电站",
    align: "center",
    "min-width": "100px",
    children: [
      {
        label: "500kV及以上",
        align: "center",
        "min-width": "80px",
        children: [
          {
            prop: "bdz500KvTrip",
            label: "累计停运",
            align: "center",
            "min-width": "90px"
          },
          {
            prop: "bdz500KvRecover",
            label: "累计恢复",
            align: "center",
            "min-width": "90px"
          }
        ]
      },
      {
        label: "220kV",
        align: "center",
        "min-width": "80px",
        children: [
          {
            prop: "bdz220KvTrip",
            label: "累计停运",
            align: "center",
            "min-width": "90px"
          },
          {
            prop: "bdz220KvRecover",
            label: "累计恢复",
            align: "center",
            "min-width": "90px"
          }
        ]
      },
      {
        label: "110kV",
        align: "center",
        "min-width": "120px",
        children: [
          {
            prop: "bdz110KvTrip",
            label: "累计停运",
            align: "center",
            "min-width": "90px"
          },
          {
            prop: "bdz110KvRecover",
            label: "累计恢复",
            align: "center",
            "min-width": "90px"
          }
        ]
      },
      {
        label: "35kV",
        align: "center",
        "min-width": "120px",
        children: [
          {
            prop: "bdz35KvTrip",
            label: "累计停运",
            align: "center",
            "min-width": "90px"
          },
          {
            prop: "bdz35KvRecover",
            label: "累计恢复",
            align: "center",
            "min-width": "90px"
          }
        ]
      }
    ]
  },
  {
    label: "配电线路",
    align: "center",
    "min-width": "100px",
    children: [
      {
        label: "10kV",
        align: "center",
        "min-width": "120px",
        children: [
          {
            prop: "pdxl10KvTrip",
            label: "累计停运",
            align: "center",
            "min-width": "90px"
          },
          {
            prop: "pdxl10KvRecover",
            label: "累计恢复",
            align: "center",
            "min-width": "90px"
          }
        ]
      }
    ]
  },
  {
    label: "台区",
    align: "center",
    "min-width": "100px",
    children: [
      {
        prop: "tqTrip",
        label: "累计停电",
        align: "center",
        "min-width": "90px"
      },
      {
        prop: "tqRecover",
        label: "累计恢复",
        align: "center",
        "min-width": "90px"
      },
      {
        prop: "tqRater",
        label: "恢复率",
        align: "center",
        "min-width": "90px"
      }
    ]
  },
  {
    label: "用户",
    align: "center",
    "min-width": "100px",
    children: [
      {
        prop: "ptyhTrip",
        label: "累计停电",
        align: "center",
        "min-width": "90px"
      },
      {
        prop: "ptyhRecover",
        label: "累计恢复",
        align: "center",
        "min-width": "90px"
      },
      {
        prop: "ptyhRater",
        label: "恢复率",
        align: "center",
        "min-width": "90px"
      }
    ]
  },
  {
    label: "重要用户",
    align: "center",
    "min-width": "100px",
    children: [
      {
        prop: "zyyhTrip",
        label: "累计停电",
        align: "center",
        "min-width": "90px"
      },
      {
        prop: "zyyhRecover",
        label: "累计恢复",
        align: "center",
        "min-width": "90px"
      },
      {
        prop: "zyyhRater",
        label: "恢复率",
        align: "center",
        "min-width": "90px"
      }
    ]
  }
];

export const index_zqxx_columns = [
  {
    prop: "unitName",
    label: "所属单位",
    align: "center",
    "min-width": "140px"
  },
  {
    prop: "",
    label: "输电线路",
    align: "center",
    "min-width": "80px",
    children: [
      {
        label: "500kV及以上",
        align: "center",
        "min-width": "80px",
        children: [
          {
            prop: "sdxl500KvTrip",
            label: "累计跳闸",
            align: "center",
            "min-width": "99px",
            color: "#FF4F4F",
            "font-size": "17px",
            "font-family": "Arial",
            render: (h, { row }) => {
              return (
                <div>
                  {
                    <span
                      style='color:#FF4F4F;cursor:pointer;text-decoration: underline; font-weight: 700'
                    >
                      {row.sdxl500KvTrip}
                    </span>
                  }
                </div>
              );
            }
          },
          {
            prop: "sdxl500KvRecover",
            label: "累计恢复",
            align: "center",
            "min-width": "99px",
            color: "#56F423",
            "font-size": "17px",
            "font-family": "Arial",
            render: (h, { row }) => {
              return (
                <div>
                  {
                    <span
                      style='color:#56F423;cursor:pointer; font-weight: 700'
                    >
                      {row.sdxl500KvRecover}
                    </span>
                  }
                </div>
              );
            }
          }
        ]
      },
      {
        label: "220kV",
        align: "center",
        "min-width": "80px",
        children: [
          {
            prop: "sdxl220KvTrip",
            label: "累计跳闸",
            align: "center",
            "min-width": "99px",
            color: "#FF4F4F",
            "font-size": "17px",
            "font-family": "Arial",
            render: (h, { row }) => {
              return (
                <div>
                  {
                    <span
                      style='color:#FF4F4F;cursor:pointer;text-decoration: underline; font-weight: 700'
                    >
                      {row.sdxl220KvTrip}
                    </span>
                  }
                </div>
              );
            }
          },
          {
            prop: "sdxl220KvRecover",
            label: "累计恢复",
            align: "center",
            "min-width": "99px",
            color: "#56F423",
            "font-size": "17px",
            "font-family": "Arial",
            render: (h, { row }) => {
              return (
                <div>
                  {
                    <span
                      style='color:#56F423;cursor:pointer; font-weight: 700'
                    >
                      {row.sdxl220KvRecover}
                    </span>
                  }
                </div>
              );
            }
          }
        ]
      },
      {
        label: "110kV",
        align: "center",
        "min-width": "80px",
        children: [
          {
            prop: "sdxl110KvTrip",
            label: "累计跳闸",
            align: "center",
            "min-width": "99px",
            color: "#FF4F4F",
            "font-size": "17px",
            "font-family": "Arial",
            render: (h, { row }) => {
              return (
                <div>
                  {
                    <span
                      style='color:#FF4F4F;cursor:pointer;text-decoration: underline; font-weight: 700'
                    >
                      {row.sdxl110KvTrip}
                    </span>
                  }
                </div>
              );
            }
          },
          {
            prop: "sdxl110KvRecover",
            label: "累计恢复",
            align: "center",
            "min-width": "99px",
            color: "#56F423",
            "font-size": "17px",
            "font-family": "Arial",
            render: (h, { row }) => {
              return (
                <div>
                  {
                    <span
                      style='color:#56F423;cursor:pointer; font-weight: 700'
                    >
                      {row.sdxl110KvRecover}
                    </span>
                  }
                </div>
              );
            }
          }
        ]
      },
      {
        label: "35kV",
        align: "center",
        "min-width": "120px",
        children: [
          {
            prop: "sdxl35KvTrip",
            label: "累计跳闸",
            align: "center",
            "min-width": "99px",
            color: "#FF4F4F",
            render: (h, { row }) => {
              return (
                <div>
                  {
                    <span
                      style='color:#FF4F4F;cursor:pointer;text-decoration: underline; font-weight: 700'
                    >
                      {row.sdxl35KvTrip}
                    </span>
                  }
                </div>
              );
            }
          },
          {
            prop: "sdxl35KvRecover",
            label: "累计恢复",
            align: "center",
            "min-width": "99px",
            color: "#56F423",
            render: (h, { row }) => {
              return (
                <div>
                  {
                    <span
                      style='color:#56F423;cursor:pointer;font-weight: 700'
                    >
                      {row.sdxl35KvRecover}
                    </span>
                  }
                </div>
              );
            }
          }
        ]
      }
    ]
  },
  {
    label: "变电站",
    align: "center",
    "min-width": "100px",
    children: [
      {
        label: "500kV及以上",
        align: "center",
        "min-width": "80px",
        children: [
          {
            prop: "bdz500KvTrip",
            label: "累计停运",
            align: "center",
            "min-width": "99px",
            color: "#FF4F4F",
            "font-size": "17px",
            "font-family": "Arial",
            render: (h, { row }) => {
              return (
                <div>
                  {
                    <span
                      style='color:#FF4F4F;cursor:pointer;text-decoration: underline; font-weight: 700'
                    >
                      {row.bdz500KvTrip}
                    </span>
                  }
                </div>
              );
            }
          },
          {
            prop: "bdz500KvRecover",
            label: "累计恢复",
            align: "center",
            "min-width": "99px",
            color: "#56F423",
            "font-size": "17px",
            "font-family": "Arial",
            render: (h, { row }) => {
              return (
                <div>
                  {
                    <span
                      style='color:#56F423;cursor:pointer; font-weight: 700'
                    >
                      {row.bdz500KvRecover}
                    </span>
                  }
                </div>
              );
            }
          }
        ]
      },
      {
        label: "220kV",
        align: "center",
        "min-width": "80px",
        children: [
          {
            prop: "bdz220KvTrip",
            label: "累计停运",
            align: "center",
            "min-width": "99px",
            color: "#FF4F4F",
            "font-size": "17px",
            "font-family": "Arial",
            render: (h, { row }) => {
              return (
                <div>
                  {
                    <span
                      style='color:#FF4F4F;cursor:pointer;text-decoration: underline; font-weight: 700'
                    >
                      {row.bdz220KvTrip}
                    </span>
                  }
                </div>
              );
            }
          },
          {
            prop: "bdz220KvRecover",
            label: "累计恢复",
            align: "center",
            "min-width": "99px",
            color: "#56F423",
            "font-size": "17px",
            "font-family": "Arial",
            render: (h, { row }) => {
              return (
                <div>
                  {
                    <span
                      style='color:#56F423;cursor:pointer; font-weight: 700'
                    >
                      {row.bdz220KvRecover}
                    </span>
                  }
                </div>
              );
            }
          }
        ]
      },
      {
        label: "110kV",
        align: "center",
        "min-width": "120px",
        children: [
          {
            prop: "bdz110KvTrip",
            label: "累计停运",
            align: "center",
            "min-width": "99px",
            color: "#FF4F4F",
            render: (h, { row }) => {
              return (
                <div>
                  {
                    <span
                      style='color:#FF4F4F;cursor:pointer;text-decoration: underline; font-weight: 700'
                    >
                      {row.bdz110KvTrip}
                    </span>
                  }
                </div>
              );
            }
          },
          {
            prop: "bdz110KvRecover",
            label: "累计恢复",
            align: "center",
            "min-width": "99px",
            color: "#56F423",
            render: (h, { row }) => {
              return (
                <div>
                  {
                    <span
                      style='color:#56F423;cursor:pointer;font-weight: 700'
                    >
                      {row.bdz110KvRecover}
                    </span>
                  }
                </div>
              );
            }
          }
        ]
      },
      {
        label: "35kV",
        align: "center",
        "min-width": "120px",
        children: [
          {
            prop: "bdz35KvTrip",
            label: "累计停运",
            align: "center",
            "min-width": "99px",
            color: "#FF4F4F",
            render: (h, { row }) => {
              return (
                <div>
                  {
                    <span
                      style='color:#FF4F4F;cursor:pointer;text-decoration: underline; font-weight: 700'
                    >
                      {row.bdz35KvTrip}
                    </span>
                  }
                </div>
              );
            }
          },
          {
            prop: "bdz35KvRecover",
            label: "累计恢复",
            align: "center",
            "min-width": "99px",
            render: (h, { row }) => {
              return (
                <div>
                  {
                    <span
                      style='color:#56F423;cursor:pointer;font-weight: 700'
                    >
                      {row.bdz35KvRecover}
                    </span>
                  }
                </div>
              );
            }
          }
        ]
      }
    ]
  },
  {
    label: "配电线路",
    align: "center",
    "min-width": "100px",
    children: [
      {
        label: "10kV",
        align: "center",
        "min-width": "120px",
        children: [
          {
            prop: "pdxl10KvTrip",
            label: "累计停运",
            align: "center",
            "min-width": "99px",
            render: (h, { row }) => {
              return (
                <div>
                  {
                    <span
                      style='color:#FF4F4F;cursor:pointer;text-decoration: underline; font-weight: 700'
                    >
                      {row.pdxl10KvTrip}
                    </span>
                  }
                </div>
              );
            }
          },
          {
            prop: "pdxl10KvRecover",
            label: "累计恢复",
            align: "center",
            "min-width": "99px",
            render: (h, { row }) => {
              return (
                <div>
                  {
                    <span
                      style='color:#56F423;cursor:pointer;font-weight: 700'
                    >
                      {row.pdxl10KvRecover}
                    </span>
                  }
                </div>
              );
            }
          }
        ]
      }
    ]
  },
  {
    label: "台区",
    align: "center",
    "min-width": "100px",
    children: [
      {
        prop: "tqTrip",
        label: "累计停电",
        align: "center",
        "min-width": "99px",
        render: (h, { row }) => {
          return (
            <div>
              {
                <span
                  style='color:#FF4F4F;cursor:pointer;text-decoration: underline; font-weight: 700'
                  {...{
                    on: {
                      click: () => {
                      }
                    }
                  }}
                >
                  {row.tqTrip}
                </span>
              }
            </div>
          );
        }
      },
      {
        prop: "tqRecover",
        label: "累计恢复",
        align: "center",
        "min-width": "99px",
        render: (h, { row }) => {
          return (
            <div>
              {
                <span
                  style='color:#56F423;cursor:pointer;font-weight: 700'
                  {...{
                    on: {
                      click: () => {
                      }
                    }
                  }}
                >
                  {row.tqRecover}
                </span>
              }
            </div>
          );
        }
      },
      {
        prop: "tqRater",
        label: "恢复率",
        align: "center",
        "min-width": "99px"
      }
    ]
  },
  {
    label: "用户",
    align: "center",
    "min-width": "100px",
    children: [
      {
        prop: "ptyhTrip",
        label: "累计停电",
        align: "center",
        "min-width": "99px",
        render: (h, { row }) => {
          return (
            <div>
              {
                <span
                  style='color:#FF4F4F;cursor:pointer;text-decoration: underline; font-weight: 700'
                  {...{
                    on: {
                      click: () => {
                      }
                    }
                  }}
                >
                  {row.ptyhTrip}
                </span>
              }
            </div>
          );
        }
      },
      {
        prop: "ptyhRecover",
        label: "累计恢复",
        align: "center",
        "min-width": "99px",
        render: (h, { row }) => {
          return (
            <div>
              {
                <span
                  style='color:#56F423;cursor:pointer;font-weight: 700'
                  {...{
                    on: {
                      click: () => {
                      }
                    }
                  }}
                >
                  {row.ptyhRecover}
                </span>
              }
            </div>
          );
        }
      },
      {
        prop: "ptyhRater",
        label: "恢复率",
        align: "center",
        "min-width": "99px"
      }
    ]
  },
  {
    label: "重要用户",
    align: "center",
    "min-width": "100px",
    children: [
      {
        prop: "zyyhTrip",
        label: "累计停电",
        align: "center",
        "min-width": "99px",
        render: (h, { row }) => {
          return (
            <div>
              {
                <span
                  style='color:#FF4F4F;cursor:pointer;text-decoration: underline; font-weight: 700'
                  {...{
                    on: {
                      click: () => {
                      }
                    }
                  }}
                >
                  {row.zyyhTrip}
                </span>
              }
            </div>
          );
        }
      },
      {
        prop: "zyyhRecover",
        label: "累计恢复",
        align: "center",
        "min-width": "99px",
        render: (h, { row }) => {
          return (
            <div>
              {
                <span
                  style='color:#56F423;cursor:pointer;font-weight: 700'
                  {...{
                    on: {
                      click: () => {
                      }
                    }
                  }}
                >
                  {row.zyyhRecover}
                </span>
              }
            </div>
          );
        }
      },
      {
        prop: "zyyhRater",
        label: "恢复率",
        align: "center",
        "min-width": "99px"
      }
    ]
  }
];
